using System.ComponentModel;

namespace SumerCoreDevOps.Application.Dtos.Requests.Permissions
{
    /// <summary>
    /// 创建权限请求
    /// </summary>
    public class CreatePermissionRequest
    {
        /// <summary>
        /// 权限名称
        /// </summary>
        /// <example>Workflow.Create</example>
        [Description("权限名称")]
        public string PermissionName { get; set; } = null!;

        /// <summary>
        /// 权限代码
        /// </summary>
        /// <example>workflow:create</example>
        [Description("权限代码")]
        public string PermissionCode { get; set; } = null!;

        /// <summary>
        /// 权限类别
        /// </summary>
        /// <example>Workflow</example>
        [Description("权限类别")]
        public string? Category { get; set; }

        /// <summary>
        /// 权限描述
        /// </summary>
        /// <example>允许创建工作流</example>
        [Description("权限描述")]
        public string? Description { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        /// <example>admin</example>
        [Description("创建者")]
        public string? CreatedBy { get; set; }
    }
}
